package com.awx.server.dao;

import java.util.Collection;

import com.awx.client.entities.Entity;

public interface DAO<T extends Entity> {
	
	public T findBy(T object);
	
	public T findById(Long id);
	
	public T findById(String id);
	
	public void remove(T object);
	
	public Long store(T o);
	
	public Collection<T> findAll();
	
	public Collection<T> findByIds(Collection<Long> ids);

}
